<template>
    <div class="bread-item">
        <RouterLink v-if="to" :to="to">
            <slot />
        </RouterLink>
        <span v-else>
            <slot />
        </span>
    </div>
</template>
<script>
export default {
    name: 'BreadItem',
}
</script>
<script setup>
const props = defineProps({
    to: {
        type: [String, Object]
    }
})
</script>